New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

boxt

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxt

📦 Create boxes around text

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

boxt

boxt

boxt

Use

npm i -S boxt

const boxt = require('boxt');

boxt(`I have a message
It might be multilined`);

Options

boxt(
	'Guests, like fish, begin to smell after three days.',
	{
		color: 'green',
		theme: 'round',
		padding: 4,
		align: 'center',
		minWidth: 100
	}
);
optionmeaningvalues
titleA titleAnd string
themeborder style'single' (default), 'double', 'round'
colorborder coloursee chalk on NPM
paddingspace from borders to text
alignWhere to align the lines'center' (default), 'left'/'start', 'right'/'end'
minWidthMinimal widthany number or 'full' for full terminal width

Examples

optionsresult
theme: 'double'
color: 'bgBlue'
example
theme: 'round'
color: 'green'
example
padding: 10
align: 'left'
example
title 'I am the title'.boldexample

Keywords

FAQs

Package last updated on 09 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc